from django.contrib import admin
from ssr.models import SeqFasta, SsrRecord

class SeqAdmin(admin.ModelAdmin):
    list_display = ('gi', '__unicode__', 'summery_seq')
    ordering = ('created_at',)

class SsrAdmin(admin.ModelAdmin):
    list_display = ('seq', '__unicode__', 'motif', 'start', 'end')
    ordering = ('created_at',)
    list_filter = ('len_motif',)
    
admin.site.register(SeqFasta, SeqAdmin)
admin.site.register(SsrRecord, SsrAdmin)
